animatedstyle: don't share styleanimations
authorMatt Watson <mattdangerw@gmail.com>
Tue, 22 Mar 2016 08:10:21 +0000 (01:10 -0700)
committerMatt Watson <mattdangerw@gmail.com>
Fri, 8 Apr 2016 23:09:30 +0000 (16:09 -0700)
commita970ba5ef673c448775480fe76f363ae50ffaaec
tree1db46217a82ac14d3fca33153fe82a4f197a2c38
parent7b68bdb8316fc1bb96c4a5ad16c1885506131d22
animatedstyle: don't share styleanimations

Because of our port of css animation and css transition to
progress tracker, we should not think of animated styles as
immutable objects that can map any timestamp to css values.
Rather, timestamps can correspond to different values depending
on the value of GTK_SLOWDOWN over the course of the animation.

To keep animated styles and style animations totally immutable,
we will not share styleanimations between animatedstyles, and
make a new copy of a styleanimation for each timestamp.
gtk/gtkcssanimatedstyle.c
gtk/gtkcssanimation.c
gtk/gtkcssanimationprivate.h
gtk/gtkcsstransition.c
gtk/gtkstyleanimation.c
gtk/gtkstyleanimationprivate.h